package com.nandi.deviceinstall.contract

import com.nandi.deviceinstall.base.BaseView
import com.nandi.deviceinstall.bean.BindRecordInfoBean
import com.nandi.deviceinstall.bean.ListDataBean
import com.nandi.deviceinstall.net.dto.BindUpdateDTO
import com.nandi.deviceinstall.net.dto.DataDTO
import io.reactivex.Flowable

interface BindSuccessContract {
    interface Model {
        fun executeBindRecordInfo(token: String, id: Int): Flowable<BindRecordInfoBean>
        fun requestData(token: String,devId: String): Flowable<ListDataBean>
    }

    interface View : BaseView {
        override fun showLoading()

        override fun hideLoading()

        override fun onError(msg: String, code: Int)

        fun handlerBindRecordResult(t: BindRecordInfoBean)
        fun handlerDataResult(t: ListDataBean)
    }

    interface Presenter {
        fun requestBindRecordInfo(token: String, id: Int)

        fun requestData(token: String,devId: String)
    }
}